import App from './App'
const api = require("@/api/server-api.js")
const http = require("@/utils/httpHelper.js")
// #ifdef H5

import custom from 'components/common/custom/custom'
import lazyImage from "@/components/common/lazy-image.vue"; //图片懒加载
Vue.component('custom',custom);
Vue.component('lazyImage', lazyImage)
// #endif
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
Vue.prototype.$api = api;
Vue.prototype.$http = http;

